package com.huawei.po;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author wujinpeng
 * @version 1.0
 * @date 2025/1/23 18:22
 * @description
 */
@Data
public class GenshinGame {

    @Length(min = 2, max = 5, message = "名字需2-5个字数")
    @NotBlank
    private String gameName;

    @Min(value = 60, message = "分数不能小于60")
    private Integer score;

    @Valid
    private User user;

}
